		<div id="portfolio-archive">

		<?php if (have_posts()) : ?>
		<div id="item4container" class="fls">
		<?php $i = 0; ?>
		<?php while (have_posts()) : the_post(); ?>
			<?php if ($i==3) {echo "<div class=\"clear\"><!-- --></div>"; $i=0;}; $i++;?>
			<div class="item4">
				<?php
					$exc = get_the_excerpt();
					preg_replace ('<p>','',$exc);
					$image2 = get_post_meta($post->ID, 'full_image_value', true);
					//CHECK IMAGE POST
					if ($image2) { ?>
						<img class="pf3 absolute" src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $image2 ?>&h=160&w=265&zc=1&q=90" width="265" height="160" alt="<?php the_title(); ?>" />
						<a rel='prettyPhoto' title="<?php echo $exc ?> &lt;a class=&quot;ico_arrow&quot; href=&quot;<?php the_permalink() ?>&quot;&gt;Read More&lt;/a&gt;" href="<?php echo $image2 ?>">
							<img class="pf3link" src="<?php bloginfo('template_directory'); ?>/images/zoom.png" width="273" height="168" alt="<?php the_title(); ?>" />
						</a>
					<?php }
					//CHECK AUTOMATIC THUMB
					elseif (catch_that_image()<>"") { ?>
						<img class="pf3 absolute" src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo catch_that_image() ?>&h=160&w=265&zc=1&q=90" width="265" height="160" alt="<?php the_title(); ?>" />
						<a rel='prettyPhoto' title="<?php echo $exc ?> &lt;a class=&quot;ico_arrow&quot; href=&quot;<?php the_permalink() ?>&quot;&gt;Read More&lt;/a&gt;" href="<?php echo catch_that_image() ?>">
							<img class="pf3link" src="<?php bloginfo('template_directory'); ?>/images/zoom.png" width="273" height="168" alt="<?php the_title(); ?>" />
						</a>
					<?php }
					// ELSE DEFAULT
					else { ?><a href="<?php the_permalink() ?>"><img class="pf3" src="<?php bloginfo('template_directory'); ?>/images/folio-thumb-265x160.jpg" width="265" height="160" alt="no image"/></a><?php ;}
				?>
				<div>
				<h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
				<div class="mm">
					<?php the_tags('<span class="tag"> ', ', ', '</span>'); ?>
				</div>
				<a class="button" href="<?php the_permalink(); ?>"><span>View details</span></a>
				</div>
			</div><!-- end item -->
		<?php endwhile; ?>
		<div class="clear"><!-- --></div>
		</div>
		<?php // PAGINATION
			if(function_exists('wp_pagenavi')) { ?><div id="wp-pagenavibox"><?php wp_pagenavi(); ?></div><?php } 
			else { ?><div id="but-prev-next"><?php next_posts_link('&laquo; Previous'); previous_posts_link('Next &raquo;'); ?></div><?php }
		?>
		<?php else : ?>
		<p>Sorry, but there aren't any posts in this category yet.</p>
		<?php endif; ?>	
		</div><!-- end contentbox -->